const Mock = require('mockjs')
module.exports = [
    {
        url: '/staff/updatePreferByEmp',
        type: 'post',
        response: () => {
            return {
                returnValue: "1",
                msg: "更新成功",
                data: null,
                map: {}
            }
        }

    },
    {
        url: '/staff/staffSelfInfo',
        type: 'get',
        response: () => {
            return {
                "returnValue": 1,
                "data": {
                    "id": 101,
                    "storeId": 1,
                    "name": "姜春雨",
                    "sex": "男",
                    "phone": "17761375344",
                    "email": "3030951264@qq.com",
                    "position": "导购员",
                    "dayWorkTime": 0.00,
                    "weekWorkTime": 0.00,
                    "staffPreferenceList": [
                        {
                            "id": 72,
                            "staffId": 101,
                            "preferenceName": "工作日偏好",
                            "preferenceValue": "1,3,4"
                        },
                        {
                            "id": 73,
                            "staffId": 101,
                            "preferenceName": "工作时间偏好",
                            "preferenceValue": "09:00-12:00"
                        },
                        
                    ]
            },
                "map": {}
            }
        }

    },
    {
        url: '/staff/MockstaffSelfInfo',
        type: 'get',
        response: () => {
            return {
                "returnValue": 1,
                "data": {
                    "id": 102,
                    "storeId": 1,
                    "name": "batMan",
                    "sex": "男",
                    "phone": "17761375344",
                    "email": "3030951264@qq.com",
                    "position": "导购员",
                    "dayWorkTime": 0.00,
                    "weekWorkTime": 0.00,
                    "staffPreferenceList": [
                        {
                            "id": 77,
                            "staffId": 101,
                            "preferenceName": "工作日偏好",
                            "preferenceValue": "2,3,4"
                        },
                        {
                            "id": 79,
                            "staffId": 101,
                            "preferenceName": "班次时长偏好",
                            "preferenceValue": "3"
                        },
                    ]
            },
                "map": {}
            }
        }

    }
]